//
//  GlobalNotificationName.swift
//  MT
//
//  Created by M on 2019/12/15.
//  Copyright © 2019 张强. All rights reserved.
//

import Foundation

enum GlobalNotificationName: String {
    
    /// 用户信息
    case homeInteractionUserInfo        = "com.mitu.homeInteractionUserInfo"
    
    /// 首页加好友
    case homeInteractionAddFriend       = "com.mitu.homeInteractionAddFriend"
    
    /// 首页送礼物
    case homeInteractionSendGift        = "com.mitu.homeInteractionSendGift"
    
    /// 弹出相册
    case presentPhotoLibrary            = "com.mitu.presentPhotoLibary"
    
    /// 弹出发布页
    case presentPostController          = "com.mitu.presentPostModules"
    
    /// 发布新帖子
    case publishPost                    = "com.mitu.publishPost"
    
    /// 屏蔽动态
    case moment                         = "com.mitu.moment"
    
    /// 认证视频
    case authVideo                      = "com.mitu.authVideo"
    
    /// 身份证正面
    case idFront                        = "com.mitu.idFront"
    
    /// 身份证反面
    case idBack                         = "com.mitu.idBack"
    
    /// 成功通过好友请求后
    case didBecomeFriend                         = "com.mitu.didBecomeFriend"
    
    /// 成功删除好友请求后
    case didRevokeFriend                         = "com.mitu.didRevokeFriend"
    
    /// 跳转聊天界面
    case didPushChat                         = "com.mitu.didPushChat"
    
    /// 刷新我的页面
    case refreshUserInfo                     = "com.mitu.refreshUserInfo"
    
}

// MARK: ------------------ 属性 ----------------------
extension GlobalNotificationName {
    
    /// 通知名
    var name: Notification.Name {
        return Notification.Name(self.rawValue)
    }
    
}
